package com.changgou.feign;

import com.changgou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Project: com.changgou.feign
 * @Author: ShaoDi Wang
 * @Date: Created in 2019-08-13 09:22
 * @Description:
 * @Version: 1.0
 */
@FeignClient(name = "user")
@RequestMapping("/provinces")
public interface ProvincesFeign {

    /**
     * 查询全部省数据
     * @return
     */
    @GetMapping
    public Result findAll();
}
